﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BestBuy.DAL;
namespace BestBuy.PageUser
{
    public partial class ImageProduct : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int idProduct = int.Parse(Request.Params["IdProduct"].ToString());
            loadImage(idProduct);
        }
        private void loadImage(int idproduct)
        {
            String imageName = cManageProduct.getImageName(idproduct);
            String str = "~/Images/Product/" + imageName;
            Image1.ImageUrl = str;
        }
    }
}